home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_10
/
milam
/
date.c
< prev
next >
Wrap
Text File
|
1994-07-12
|
867b
|
25 lines
/***************************************************************/
/* (c) Copyright 1993 by Stan Milam */
/* */
/***************************************************************/
date_t date( date_t *arg ) {
date_t rv;
/***********************************************************/
/* Use time_to_date() which uses the ANSI time() function */
/* to do the actual date conversion. */
/***********************************************************/
rv = time_to_date( time( NULL ) );
/***********************************************************/
/* If an argument is supplied put the value in it. */
/***********************************************************/
if ( arg != NULL ) *arg = rv;
return rv;
}